package com.uplift.mgt.building.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mgt.building.model.BuildingModel;
import com.uplift.mgt.building.model.RealtyLease;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import java.util.List;
import java.util.Map;

public interface IRealtyLeaseService {
	public List<Map<String, Object>> queryRealtyLease(RealtyLease realtyLease);

	public List<Map<String, Object>> queryAllRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut addRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut updateRealtyLease(RealtyLease realtyLease);

	@Transactional
	public ServiceReslut deleteRealtyLease(RealtyLease realtyLease);

	public ServiceReslut endRealtyLease(RealtyLease realtyLease);

	/**
	 * 查询租约下广告列表
	 * @param realtyLeaseId
	 * @return
	 */
	public List<Map<String, Object>> queryRealtyLeaseAd(String realtyLeaseId);

	/**
	 * 导入租约
	 * @param request
	 * @return
	 */
	public void importLease(MultipartHttpServletRequest request);
}
